package org.young.common.base;

/**
 * Created by young on 16/9/28.
 */
public interface BaseMapper<Entity extends BaseEntity> {

    /**
     * 根据主键id获取entity
     */
    Entity getEntity(final Long id);

    /**
     * 根据主键id删除entity
     */
    void removeEntity(final Long id);

}
